package grpc_client

import (
	"longmen/server/config/global"
	"longmen/server/pkg/common/helper/const"
	pb "longmen/server/pkg/protobuf"
)

var GrpcAccountServer pb.AccountServerClient

func InitAccountGrpc(token *Token) {
	accountConn := getClientConn(global.GetMicroserviceName(_const.GRPC_ACCOUNT_SERVER_NAME_KEY), token)
	GrpcAccountServer = pb.NewAccountServerClient(accountConn)
}
